<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    body {
      position: relative;
    }
    div {
      width: 200px;
      height: 200px;
      
      border: 1px solid red;
    }
    .box1 {
      background-color: antiquewhite;
      position: relative;
      left: 0;
      top: 0;
    }
    .box2 {
      background-color: #30b754;
      position: absolute;
      left: 100px;
      top: 100px;
    }
  </style>
</head>
<body>
  <div class="box1"></div>
  <div class="box2"></div>
</body>
</html>